<%--
  Created by IntelliJ IDEA.
  User: taohj
  Date: 2014/6/29
  Time: 18:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="menu" value="none" scope="request"></c:set>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<c:set var="dashboardMenuTag" value="myApp" scope="request"></c:set>

<!Doctype html>
<html>
<head>
    <base href="<%=basePath%>">
    <title>政府数据开放平台</title>
    <jsp:include page="../../commons/include.jsp"/>

    <link href="/resources/css/lib.css" rel="stylesheet">


    <style>
        li[type=theme] {
            cursor: pointer;
            color: rgb(58, 123, 200);
            list-style: none;
            line-height: 30px;
        }
    </style>


    <script>
        $(function () {

            $(".pagination li").each(function () {
                $(this).on('click', function () {
                    var page = $(this).attr('page');
                    $('form input[name="page"]').val(page);
                    $('form').submit();
                });
            });

 
           


            $('select[name=order]').on('change', function () {
                $("form").submit();
            });


        });
    </script>


</head>
<body>


<jsp:include page="../../commons/top.jsp"/>

<div class="main">


    <jsp:include page="../../commons/dashboardMenu.jsp"/>

    <div style="margin-top: 0px">

        <div class="left">

            <div style="padding: 20px 30px;">
                <ul>
               			  <c:forEach items="${requestScope.result.list}" var="f" varStatus="status">
				  	<li><a href="/front/my/favorites/detailList?fid=${f.id}">${f.name}</a></li>
           
            </c:forEach>
				
                </ul>
            </div>
        </div>


        <div class="right">

          
            <div style="margin-top: 10px;padding-left: 16px;min-height: 400px">
                <table class="table">
                    <thead>
                    <tr style="font-size: 14px; font-weight: bold;">
                        <td width="50">序号</td>
                        <td width="150">数据集名称</td>
                        <td width="100">数据标题</td>
                
                    </tr>
                    </thead>
                    <tbody>
                  
		 <c:forEach items="${requestScope.resultlist.list}" var="fl" varStatus="status">
		 <tr>
		<td>${fl.id}</td>
		<td>${fl.dataSet.name}</td>
		<td>${fl.data.title} </td>
		
		</tr>
				  	
           
            </c:forEach>
                    </tbody>
                </table>
            </div>


            <div>
                <ul class="pagination" style="margin: 20px 30px;">
                    <li page="${requestScope.result.pageResult.startPage-1}">&laquo;</li>

                    <c:forEach begin="${requestScope.result.pageResult.startPage}"
                               end="${requestScope.result.pageResult.endPage}" var="index">
                        <li page="${index}" <c:if
                                test="${index==requestScope.result.pageResult.page}"> class="active" </c:if> >${index}
                        </li>
                    </c:forEach>

                    <li page="${requestScope.result.pageResult.endPage+1}">&raquo;</li>
                </ul>

            </div>


        </div>


    </div>


</div>


<jsp:include page="../../commons/buttom.jsp"/>
</body>
</html>
